﻿using Developer.Entity;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Developer.Service
{

    public class RepairTypeService : BaseService<RepairType>
    {
        public static void Remove(int Id)
        {
            var temp = SysInfo.DB.RepairType.Find(Id);
            SysInfo.DB.RepairType.Remove(temp);
            SysInfo.DB.SaveChanges();
        }
    }
    public class RepairBrandService : BaseService<RepairBrand>
    {
        public static void Remove(int id)
        {
            var temp = SysInfo.DB.RepairBrand.Find(id);
            SysInfo.DB.RepairBrand.Remove(temp);
            SysInfo.DB.SaveChanges();
        }
    }

    public class RepairModelService : BaseService<RepairModel>
    {
        public static void Remove(int id)
        {
            var temp = SysInfo.DB.RepairModel.Find(id);
            SysInfo.DB.RepairModel.Remove(temp);
            SysInfo.DB.SaveChanges();
        }
    }

    public class RepairColorService : BaseService<RepairColor>
    {
        public static void Remove(int id)
        {
            var temp = SysInfo.DB.RepairColor.Find(id);
            SysInfo.DB.RepairColor.Remove(temp);
            SysInfo.DB.SaveChanges();
        }
    }

    public class RepairProblemService : BaseService<RepairProblem>
    {
        public static void Remove(int id)
        {
            var temp = SysInfo.DB.RepairProblem.Find(id);
            SysInfo.DB.RepairProblem.Remove(temp);
            SysInfo.DB.SaveChanges();
        }
    }

    public class RepairProblemDetailService : BaseService<RepairProblemDetail>
    {
        public static void Remove(int id)
        {
            var temp = SysInfo.DB.RepairProblemDetail.Find(id);
            SysInfo.DB.RepairProblemDetail.Remove(temp);
            SysInfo.DB.SaveChanges();
        }
    }

    public class CycleTypeService : BaseService<CycleType>
    {
        public static void Remove(int id)
        {
            var temp = SysInfo.DB.CycleType.Find(id);
            SysInfo.DB.CycleType.Remove(temp);
            SysInfo.DB.SaveChanges();
        }
    }

    public class CycleBrandService : BaseService<CycleBrand>
    {
        public static void Remove(int id)
        {
            var temp = SysInfo.DB.CycleBrand.Find(id);
            SysInfo.DB.CycleBrand.Remove(temp);
            SysInfo.DB.SaveChanges();
        }
    }

    public class CycleModelService : BaseService<CycleModel>
    {
        public static void Remove(int id)
        {
            var temp = SysInfo.DB.CycleModel.Find(id);
            SysInfo.DB.CycleModel.Remove(temp);
            SysInfo.DB.SaveChanges();
        }
    }

    public class CycleProblemService : BaseService<CycleProblem>
    {
        public static void Remove(int id)
        {
            var temp = SysInfo.DB.CycleProblem.Find(id);
            SysInfo.DB.CycleProblem.Remove(temp);
            SysInfo.DB.SaveChanges();
        }
    }

    public class CycleProblemDetailService : BaseService<CycleProblemDetail>
    {
        public static void Remove(int id)
        {
            var temp = SysInfo.DB.CycleProblemDetail.Find(id);
            SysInfo.DB.CycleProblemDetail.Remove(temp);
            SysInfo.DB.SaveChanges();
        }
    }

    public class CycleOrderService : BaseService<CycleOrder>
    {

    }

    public class RepairOrderService : BaseService<RepairOrder>
    {

    }

    public class CycleOrderDetailService : BaseService<CycleOrderDetail>
    {

    }
    public class RepairOrderDetailService : BaseService<RepairOrderDetail>
    {

    }
}
